using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class DMS063_VIEWManagerBase
    {
        public DMS063_VIEWManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity Insert(DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity Update(DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.Update(obj);             
        }
 
 
        public DMS063_VIEWEntity Delete(DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien D_CODE duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByD_CODE (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"D_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien D_CODE 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByD_CODE (string D_CODE )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_CODE = D_CODE;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"D_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien D_NAME duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByD_NAME (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"D_NAME");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien D_NAME 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByD_NAME (string D_NAME )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_NAME = D_NAME;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"D_NAME");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien D_TYPE duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByD_TYPE (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"D_TYPE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien D_TYPE 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByD_TYPE (string D_TYPE )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_TYPE = D_TYPE;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"D_TYPE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByP_CODE (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"P_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_CODE 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByP_CODE (string P_CODE )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_CODE = P_CODE;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"P_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByACTFLG (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ACTFLG 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByACTFLG (string ACTFLG )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.ACTFLG = ACTFLG;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByCTDUSR (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDUSR 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByCTDUSR (string CTDUSR )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDUSR = CTDUSR;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByCTDWKS (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDWKS 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByCTDWKS (string CTDWKS )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDWKS = CTDWKS;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByCTDPGM (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDPGM 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByCTDPGM (string CTDPGM )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDPGM = CTDPGM;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByCTDDTM (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDDTM 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByCTDDTM (DateTime CTDDTM )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDDTM = CTDDTM;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByMDFUSR (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFUSR 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByMDFUSR (string MDFUSR )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFUSR = MDFUSR;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByMDFWKS (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFWKS 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByMDFWKS (string MDFWKS )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFWKS = MDFWKS;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByMDFPGM (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFPGM 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByMDFPGM (string MDFPGM )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFPGM = MDFPGM;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByLSTMDF (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LSTMDF 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByLSTMDF (DateTime LSTMDF )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.LSTMDF = LSTMDF;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByP_NAME (DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"P_NAME");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien P_NAME 
        /// </summary>
        /// <returns>DMS063_VIEWEntity</returns>
        public DMS063_VIEWEntity DeleteByP_NAME (string P_NAME )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_NAME = P_NAME;  
            return (DMS063_VIEWEntity)Adapter.DeleteByField(obj,"P_NAME");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public DMS063_VIEWEntity Select(DMS063_VIEWEntity obj)
        { 
            return (DMS063_VIEWEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(DMS063_VIEWEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(DMS063_VIEWEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new DMS063_VIEWEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new DMS063_VIEWEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<DMS063_VIEWEntity> SelectAllLST()
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new DMS063_VIEWEntity()),new DMS063_VIEWEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<DMS063_VIEWEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new DMS063_VIEWEntity(),option),new DMS063_VIEWEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_CODE (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"D_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_CODE (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"D_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByD_CODELST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"D_CODE"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByD_CODELST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"D_CODE",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_CODE (string D_CODE )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_CODE = D_CODE;  
            return Adapter.SelectByField(obj,"D_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_CODE (string D_CODE, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_CODE = D_CODE;  
            return Adapter.SelectByField(obj,"D_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByD_CODELST (string D_CODE )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_CODE = D_CODE;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"D_CODE"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByD_CODELST (string D_CODE, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_CODE = D_CODE;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"D_CODE",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_NAME (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"D_NAME");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_NAME (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"D_NAME",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_NAME duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByD_NAMELST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"D_NAME"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_NAME duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByD_NAMELST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"D_NAME",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_NAME 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_NAME (string D_NAME )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_NAME = D_NAME;  
            return Adapter.SelectByField(obj,"D_NAME");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_NAME (string D_NAME, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_NAME = D_NAME;  
            return Adapter.SelectByField(obj,"D_NAME",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_NAME 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByD_NAMELST (string D_NAME )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_NAME = D_NAME;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"D_NAME"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByD_NAMELST (string D_NAME, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_NAME = D_NAME;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"D_NAME",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_TYPE (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"D_TYPE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_TYPE (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"D_TYPE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_TYPE duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByD_TYPELST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"D_TYPE"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_TYPE duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByD_TYPELST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"D_TYPE",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_TYPE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_TYPE (string D_TYPE )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_TYPE = D_TYPE;  
            return Adapter.SelectByField(obj,"D_TYPE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByD_TYPE (string D_TYPE, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_TYPE = D_TYPE;  
            return Adapter.SelectByField(obj,"D_TYPE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_TYPE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByD_TYPELST (string D_TYPE )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_TYPE = D_TYPE;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"D_TYPE"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien D_TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByD_TYPELST (string D_TYPE, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.D_TYPE = D_TYPE;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"D_TYPE",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_CODE (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"P_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_CODE (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"P_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByP_CODELST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_CODE"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByP_CODELST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"P_CODE",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_CODE (string P_CODE )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_CODE = P_CODE;  
            return Adapter.SelectByField(obj,"P_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_CODE (string P_CODE, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_CODE = P_CODE;  
            return Adapter.SelectByField(obj,"P_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByP_CODELST (string P_CODE )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_CODE = P_CODE;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_CODE"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByP_CODELST (string P_CODE, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_CODE = P_CODE;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_CODE",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ACTFLG",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByACTFLGLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ACTFLG"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByACTFLGLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ACTFLG",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (string ACTFLG )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.ACTFLG = ACTFLG;  
            return Adapter.SelectByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (string ACTFLG, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.ACTFLG = ACTFLG;  
            return Adapter.SelectByField(obj,"ACTFLG",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByACTFLGLST (string ACTFLG )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.ACTFLG = ACTFLG;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ACTFLG"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByACTFLGLST (string ACTFLG, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.ACTFLG = ACTFLG;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ACTFLG",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByCTDUSRLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDUSR"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByCTDUSRLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDUSR",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (string CTDUSR )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDUSR = CTDUSR;  
            return Adapter.SelectByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (string CTDUSR, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDUSR = CTDUSR;  
            return Adapter.SelectByField(obj,"CTDUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByCTDUSRLST (string CTDUSR )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDUSR = CTDUSR;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDUSR"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByCTDUSRLST (string CTDUSR, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDUSR = CTDUSR;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDUSR",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByCTDWKSLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDWKS"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByCTDWKSLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDWKS",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (string CTDWKS )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDWKS = CTDWKS;  
            return Adapter.SelectByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (string CTDWKS, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDWKS = CTDWKS;  
            return Adapter.SelectByField(obj,"CTDWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByCTDWKSLST (string CTDWKS )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDWKS = CTDWKS;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDWKS"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByCTDWKSLST (string CTDWKS, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDWKS = CTDWKS;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDWKS",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByCTDPGMLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDPGM"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByCTDPGMLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDPGM",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (string CTDPGM )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDPGM = CTDPGM;  
            return Adapter.SelectByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (string CTDPGM, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDPGM = CTDPGM;  
            return Adapter.SelectByField(obj,"CTDPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByCTDPGMLST (string CTDPGM )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDPGM = CTDPGM;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDPGM"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByCTDPGMLST (string CTDPGM, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDPGM = CTDPGM;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDPGM",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDDTM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByCTDDTMLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDDTM"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByCTDDTMLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDDTM",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DateTime CTDDTM )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDDTM = CTDDTM;  
            return Adapter.SelectByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DateTime CTDDTM, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDDTM = CTDDTM;  
            return Adapter.SelectByField(obj,"CTDDTM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByCTDDTMLST (DateTime CTDDTM )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDDTM = CTDDTM;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDDTM"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByCTDDTMLST (DateTime CTDDTM, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.CTDDTM = CTDDTM;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDDTM",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MDFUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByMDFUSRLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFUSR"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByMDFUSRLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MDFUSR",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (string MDFUSR )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFUSR = MDFUSR;  
            return Adapter.SelectByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (string MDFUSR, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFUSR = MDFUSR;  
            return Adapter.SelectByField(obj,"MDFUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByMDFUSRLST (string MDFUSR )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFUSR = MDFUSR;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFUSR"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByMDFUSRLST (string MDFUSR, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFUSR = MDFUSR;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFUSR",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MDFWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByMDFWKSLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFWKS"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByMDFWKSLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MDFWKS",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (string MDFWKS )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFWKS = MDFWKS;  
            return Adapter.SelectByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (string MDFWKS, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFWKS = MDFWKS;  
            return Adapter.SelectByField(obj,"MDFWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByMDFWKSLST (string MDFWKS )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFWKS = MDFWKS;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFWKS"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByMDFWKSLST (string MDFWKS, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFWKS = MDFWKS;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFWKS",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MDFPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByMDFPGMLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFPGM"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByMDFPGMLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MDFPGM",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (string MDFPGM )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFPGM = MDFPGM;  
            return Adapter.SelectByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (string MDFPGM, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFPGM = MDFPGM;  
            return Adapter.SelectByField(obj,"MDFPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByMDFPGMLST (string MDFPGM )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFPGM = MDFPGM;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFPGM"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByMDFPGMLST (string MDFPGM, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.MDFPGM = MDFPGM;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFPGM",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LSTMDF",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByLSTMDFLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LSTMDF"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByLSTMDFLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LSTMDF",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DateTime LSTMDF )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.LSTMDF = LSTMDF;  
            return Adapter.SelectByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DateTime LSTMDF, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.LSTMDF = LSTMDF;  
            return Adapter.SelectByField(obj,"LSTMDF",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByLSTMDFLST (DateTime LSTMDF )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.LSTMDF = LSTMDF;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LSTMDF"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByLSTMDFLST (DateTime LSTMDF, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.LSTMDF = LSTMDF;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LSTMDF",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_NAME (DMS063_VIEWEntity obj)
        { 
            return Adapter.SelectByField(obj,"P_NAME");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_NAME (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"P_NAME",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByP_NAMELST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_NAME"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectByP_NAMELST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"P_NAME",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_NAME (string P_NAME )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_NAME = P_NAME;  
            return Adapter.SelectByField(obj,"P_NAME");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByP_NAME (string P_NAME, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_NAME = P_NAME;  
            return Adapter.SelectByField(obj,"P_NAME",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByP_NAMELST (string P_NAME )
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_NAME = P_NAME;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_NAME"),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien P_NAME duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS063_VIEWEntity> SelectByP_NAMELST (string P_NAME, SelectOptions option)
        { 
            DMS063_VIEWEntity obj = new DMS063_VIEWEntity();
            obj.P_NAME = P_NAME;  
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"P_NAME",option),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectWithConditionLST (DMS063_VIEWEntity obj)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new DMS063_VIEWEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<DMS063_VIEWEntity></returns>
        public List<DMS063_VIEWEntity> SelectWithConditionLST (DMS063_VIEWEntity obj,SelectOptions option)
        { 
            return  (List<DMS063_VIEWEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new DMS063_VIEWEntity());
        }

}
}
